import request from '@/utils/request'

// 查询工序库列表
export function queryWorkshopGroupList(data) {
  return request({
    url: '/tWorkshopGroup/queryWorkshopGroupList',
    method: 'post',
    data
  })
}
// 根据生产部门查询对应组别
export function queryWorkshopGroup(data) {
  return request({
    url: '/tWorkshopGroupDetails/queryWorkshopGroup',
    method: 'post',
    data
  })
}
// 查询生产部门列表
export function queryWorkshopDept(data) {
  return request({
    url: '/tWorkshopGroup/queryWorkshopDept',
    method: 'post',
    data
  })
}
// 查询组别详情
export function queryWorkshopGroupInfo(data) {
  return request({
    url: '/tWorkshopGroup/queryWorkshopGroupInfo',
    method: 'post',
    data
  })
}
// 查询组别详情内容分页 列表
export function queryWorkshopGroupDetailList(data) {
  return request({
    url: '/tWorkshopGroupDetails/queryWorkshopGroupDetailList',
    method: 'post',
    data
  })
}
// 更新工序库数据接口——保存
export function updateWorkshopGroupDetailsTemp(data) {
  return request({
    url: '/tWorkshopGroupDetails/updateWorkshopGroupDetailsTemp',
    method: 'post',
    data
  })
}
// 更新工序库数据接口——提交
export function updateWorkshopGroupDetailsConfirm(data) {
  return request({
    url: '/tWorkshopGroupDetails/updateWorkshopGroupDetailsConfirm',
    method: 'post',
    data
  })
}
// 反提交工序库
export function notSubmitWorkshopGroup(data) {
  return request({
    url: '/tWorkshopGroup/notSubmitWorkshopGroup',
    method: 'post',
    data
  })
}
// 审核该工序库
export function reviewWorkshopGroup(data) {
  return request({
    url: '/tWorkshopGroup/reviewWorkshopGroup',
    method: 'post',
    data
  })
}
// 反审核该工序库
export function notReviewWorkshopGroup(data) {
  return request({
    url: '/tWorkshopGroup/notReviewWorkshopGroup',
    method: 'post',
    data
  })
}
// 新增工艺模板
export function addWorkshopCraftInfo(data) {
  return request({
    url: '/tWorkshopCraftDetails/addWorkshopCraftInfo',
    method: 'post',
    data
  })
}
// 修改工艺模板
export function updateWorkshopCraftInfo(data) {
  return request({
    url: '/tWorkshopCraftDetails/updateWorkshopCraftInfo',
    method: 'post',
    data
  })
}
// 反提交工艺模板
export function notSubmitWorkshopCraft(data) {
  return request({
    url: '/tWorkshopCraft/notSubmitWorkshopCraft',
    method: 'post',
    data
  })
}
// 提交工艺模板
export function submitWorkshopCraft(data) {
  return request({
    url: '/tWorkshopCraft/submitWorkshopCraft',
    method: 'post',
    data
  })
}
// 查询工艺模板列表
export function queryWorkshopCraftList(data) {
  return request({
    url: '/tWorkshopCraft/queryWorkshopCraftList',
    method: 'post',
    data
  })
}
// 查询工艺模板详情(表头)
export function queryWorkshopCraftInfo(data) {
  return request({
    url: '/tWorkshopCraftDetails/queryWorkshopCraftInfo',
    method: 'post',
    data
  })
}

// 查询工艺模板详情(表头)
export function queryWorkshopDetailsList(data) {
  return request({
    url: '/tWorkshopCraftDetails/queryWorkshopDetailsList',
    method: 'post',
    data
  })
}
// 审核工艺模板
export function reviewWorkshopCraft(data) {
  return request({
    url: '/tWorkshopCraft/reviewWorkshopCraft',
    method: 'post',
    data
  })
}
// 反审核工艺模板
export function notReviewWorkshopCraft(data) {
  return request({
    url: '/tWorkshopCraft/notReviewWorkshopCraft',
    method: 'post',
    data
  })
}
// 删除工艺模板
export function deleteWorkshopCraftInfo(data) {
  return request({
    url: '/tWorkshopCraftDetails/deleteWorkshopCraftInfo',
    method: 'delete',
    data
  })
}
// 工艺模板 - 日志
export function queryWorkshopCraftLog(data) {
  return request({
    url: '/TJxLog/queryWorkshopCraftLog',
    method: 'post',
    data
  })
}
// 日志——工序库操作日志
export function queryWorkshopGroupLog(data) {
  return request({
    url: '/TJxLog/queryWorkshopGroupLog',
    method: 'post',
    data
  })
}
// 查询修改工艺模板影响范围
export function checkAffectedBom(data) {
  return request({
    url: '/tWorkshopCraft/checkAffectedBom',
    method: 'post',
    data
  })
}
